package com.yingxin.yxerp.module.activiti.biz.service.process;

import com.yingxin.yx.framework.commons.exception.BizException;
import com.yingxin.yxerp.module.activiti.api.FinishDateHandler;
import com.yingxin.yxerp.module.common.FinishBusinessType;
import org.springframework.stereotype.Service;

/**
 * 完结 router
 */

@Service
public class FinishDateHandlerRouter {

    /**
     * 获取 handler
     */
    public FinishDateHandler getHandler(String type) {
        FinishBusinessType businessType = FinishBusinessType.getEnum( type );
        if (businessType == null) {
            throw new BizException("未知单据");
        }
        switch (businessType) {
            default:
                throw new BizException("未知单据");
        }
    }
}
